package com.lxk.service.impl;
 
import javax.annotation.Resource;
 
import org.springframework.stereotype.Service;
 
import com.lxk.dao.IUserDao;
import com.lxk.pojo.User;
import com.lxk.service.IUserService;
 
@Service("userService")
public class UserServiceImpl implements IUserService {
	@Resource  
    private IUserDao userDao;  
      
    public User getUserById(int userId) {  
        return this.userDao.selectByPrimaryKey(userId);
    }
}
